#ifndef MYPUSHBUTTON_H
#define MYPUSHBUTTON_H

#include <QPushButton>

class myPushButton : public QPushButton
{
    Q_OBJECT
public:
    //explicit myPushButton(QWidget *parent = nullptr);

    //显示正常图片和按下后显示的图片
    myPushButton(QString normalImg, QString pressImg ="");

    QString normalImgPath;
    QString pressImgPath;

    //弹跳特效
    void zoom();

    //重写鼠标按下和释放按键
    void mousePressEvent(QMouseEvent *e);
    void mouseReleaseEvent(QMouseEvent *e);
signals:

};

#endif // MYPUSHBUTTON_H
